package com.gsit.expenditure.report.domain;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import net.sf.jasperreports.engine.JRDataSource;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;

public class InvoiceFactory{
	
	/*private static List<Invoice> invoices = new ArrayList();
	
	
	public static void addInvoice(Invoice invoice){
		invoices.add(invoice);
		
	}
	
	
	public static List<Invoice> getInvoices(){
		return invoices;
	}
	*/
public void Invoice(List<Invoice> asList) {
		
	}
	
	
	public JRDataSource getDataSource(){
		
		
		Collection<Invoice> invoices = new ArrayList<Invoice>();
		
		//Invoice invoice=new Invoice("1","12.12.2013","All","1080",2,150.00,120.000);
		//invoices.add(invoice);

		 return new JRBeanCollectionDataSource(invoices);
	}
	

}
